@tailwind base;
@tailwind components;
@tailwind utilities;

/* 基础样式重置 */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}

/* 表单样式增强 */
input:focus,
textarea:focus {
  transition: all 0.2s ease;
}

/* 按钮样式增强 */
button {
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}